<?php

/**
 * API Server
 */
class Bootstrap_API extends Bootstrap_Abstract {

    /**
     * 运行
     */
    public function run() {

        try {
            $confKey = V::config('api_key', 'api');
            $server = new API_Server(V::config($confKey));
            $server->handle();
        } catch (Exception $e) {
            echo PHP_EOL, 'Error: ', $e->getMessage(), PHP_EOL;
        }
    }
}
